<?php
    include './base.php';
    $username = $_GET['username'];
    $password = $_GET['password'];
    $sql = "select * from yuangong where y_username = '$username' and y_password = '$password'";
    $res = mysql_query($sql);
    $row = mysql_fetch_assoc($res);
    if(!$row){
        print_r('账号密码错误');
    }else{
        print_r(json_encode($row));
    }
?>